-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix race condition during loading tokens #1704
Conversation
Thank you for your contribution! We detected unformatted code and fixed them for you here: #1705 |
return | ||
} | ||
|
||
setupTask = Task { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since setupTask
store strong self
and self
stores setupTask
, there will be retain cycle here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setupTask = nil after running
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we just capture [weak self]?
Thank you for your contribution! We detected unformatted code and fixed them for you here: #1705 |
🚧 Correct format for feature/pwn-976
Description of the changes